package com.issc.framework.util;

import org.apache.commons.io.FileUtils;

import java.io.File;

public class FileUtil {
    public static File createFile(String filePath) {
        File file = null;
        try {
            file = new File(filePath);
            File parentDir = file.getParentFile();
            if (!parentDir.exists()) {
                FileUtils.forceMkdir(parentDir);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }return  file;
    }
}
